home *** CD-ROM | disk | FTP | other *** search
/ APDL Other Worlds / APDL Other Worlds Collection.iso / SF3000 / Extras / CBlibrary / h / FilePerc < prev    next >
Encoding:
Text File  |  2003-09-13  |  1.5 KB  |  43 lines

  1. /*
  2.  * CBLibrary - FilePerc
  3.  * Copyright (C) 2003  Chris Bazley
  4.  *
  5.  * This library is free software; you can redistribute it and/or
  6.  * modify it under the terms of the GNU Lesser General Public
  7.  * License as published by the Free Software Foundation; either
  8.  * version 2.1 of the License, or (at your option) any later version.
  9.  *
  10.  * This library is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.  * Lesser General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU Lesser General Public
  16.  * License along with this library; if not, write to the Free Software
  17.  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  18.  */
  19.  
  20. /* 
  21.   Displays % hourglass and watches for ESCAPE during file operations 
  22.   Applications using this component need all the messages required by
  23.   FedCompMT and/or LoadSaveMT, plus "Escape".
  24. */
  25.  
  26. #ifndef FilePerc_h
  27. #define FilePerc_h
  28.  
  29. /* RISC OS library files */
  30. #include "kernel.h"
  31. #include "flex.h"
  32.  
  33. #define FILEPERC_OP_LOAD    1 
  34. /* if file_type b31 set (load as sprite area) then pre-pend length word) */
  35. #define FILEPERC_OP_SAVE    2 
  36. /* if file_type b31 set (save as sprite file) then strip 1st word) */
  37. #define FILEPERC_OP_DECOMP  3
  38. #define FILEPERC_OP_COMP    4
  39.  
  40. extern _kernel_oserror *perc_operation(int type, const char *file_path, unsigned int file_type, flex_ptr buffer_anchor);
  41.  
  42. #endif
  43.